package com.thiswhyme.demo.msgpush.core.event.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @description: WebSocket事件内容
 * @author: thiswhyme
 * @date: 2021/9/28
 */
@Data
@Accessors(chain = true)
public class WebSocketEvent implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     * WebSocket事件类型
     */
    private EventType eventType;

    /**
     * 需要推送消息的ws连接的唯一标识
     */
    private List<String> identifiers;

    /**
     * ws消息内容
     */
    private String msgContent;
}
